#include "Jeu/Unite/Attribut/Attribut.h"

#include <random>
#include <chrono>
#include <iostream>
#include <string>

using namespace std;
using namespace Attribut;

int main() {
	Esquive esq(50.0);
	Precision prec(50.0);
	unsigned int nbTouche = 0, nbEsquive = 0;

	for (int i = 0; i < 100000; ++i) {
		string res;
		if (esq.esquive(prec.tir()) == true) {
			res = "Esquive";
			nbEsquive++;
		} else {
			res = "Touche";
			nbTouche++;
		}


		cout << res << endl;
	}

	cout << "Nombre de touche : " << nbTouche << endl;
	cout << "Nombre d'esquive : " << nbEsquive << endl;

	return 0;
}
